package com.shelpe.services.sinbad.repository.jpa;

import java.util.Date;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sinbad.entity.jpa.AdgroupLog;

public interface AdgroupLogRepository extends PagingAndSortingRepository<AdgroupLog, Long> {

	Page<AdgroupLog> findByAdgroupIDAndUpdatedTimeAfterOrderByUpdatedTimeDesc(long adgroupID, Date date, Pageable page);

	Page<AdgroupLog> findByCampaignIDAndUpdatedTimeAfterOrderByUpdatedTimeDesc(long campaignID, Date date, Pageable page);
}
